package ch2oopexer1;

import java.util.Scanner;

public class CompanyTest {
    public static void main(String[] args) {
        Company company = new Company();
        company.name="宇宙";
        company.phone="12345678963";
        company.range="太阳系";
        company.address="南京";

        Staff staff = new Staff();

        Scanner scan = new Scanner(System.in);
        for(int i=0;i<company.staffarr.length;i++) {
                company.staffarr[i]=staff;
                System.out.println("请输入员工姓名：");
                staff.sname=scan.next();
                System.out.println("请输入员工年龄：");
                staff.age=scan.nextInt();
                System.out.println("请输入员工性别：");
                staff.gender=scan.next();
        }
        company.recuit();
        company.retire(staff);
        company.companyShow();
    }
}
